package org.action;

import org.service.CapableService;
import org.util.PageBean;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class PlayerCapableAction extends ActionSupport {

	private CapableService capableservice;
	private PageBean pageBean;
	private int page;

	public void setPage(int page) {
		this.page = page;
	}

	public CapableService getCapableservice() {
		return capableservice;
	}

	public void setCapableservice(CapableService capableservice) {
		this.capableservice = capableservice;
	}

	public PageBean getPageBean() {
		return pageBean;
	}

	public void setPageBean(PageBean pageBean) {
		this.pageBean = pageBean;
	}

	public int getPage() {
		return page;
	}

	public String execute() throws Exception {

		if(page==0){
			page=1;
		}
		
		this.pageBean = capableservice.queryForPageCapable(20, page);

		return SUCCESS;

	}

}
